﻿using SqlHelper;
using System; 
namespace Model.Permission
{
    public class Action : EntityBase
    {
        public Action()
        {
            PrimaryKey = "ActionID";
            TableName = "TAction";
            AllField = "ActionID,ActionName,Description,CreateTime,ActionType,ParentID,UpdateTime";
            KeyStatus = KeyStatus.Identity;
            OrderBy = " order by CreateTime desc ";
        }

        /// <summary>
        /// 操作ID
        /// </summary>
        public int? ActionID { set; get; }

        /// <summary>
        /// 操作名称
        /// </summary>
        public string ActionName { set; get; }

        /// <summary>
        /// 详细描述
        /// </summary>
        public string Description { set; get; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { set; get; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { set; get; }

        /// <summary>
        /// ActionType
        /// </summary>
        public string ActionType { set; get; }

        /// <summary>
        /// 父级ID,默认为0,没有父级
        /// </summary>
        public int? ParentID { set; get; }
    }
}
